<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE3 {font-size: 12px; font-weight: bold; }
.STYLE4 {
	color: #03515d;
	font-size: 12px;
}
-->
</style>

<script>
var  highlightcolor='#c1ebff';
//此处clickcolor只能用win系统颜色代码才能成功,如果用#xxxxxx的代码就不行,还没搞清楚为什么:(
var  clickcolor='#51b2f6';
function  changeto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=highlightcolor&&source.id!="nc"&&cs[1].style.backgroundColor!=clickcolor)
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=highlightcolor;
}
}

function  changeback(){
if  (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="nc")
return
if  (event.toElement!=source&&cs[1].style.backgroundColor!=clickcolor)
//source.style.backgroundColor=originalcolor
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}

function  clickto(){
source=event.srcElement;
if  (source.tagName=="TR"||source.tagName=="TABLE")
return;
while(source.tagName!="TD")
source=source.parentElement;
source=source.parentElement;
cs  =  source.children;
//alert(cs.length);
if  (cs[1].style.backgroundColor!=clickcolor&&source.id!="nc")
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor=clickcolor;
}
else
for(i=0;i<cs.length;i++){
	cs[i].style.backgroundColor="";
}
}
</script>

</head>

<body>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" background="admin/tab/images/tab_05.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="12" height="30"><img src="admin/tab/images/tab_03.gif" width="12" height="30" /></td>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="58%" valign="middle"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="5%"><div align="center"><img src="admin/tab/images/tb.gif" width="16" height="16" /></div></td>
                <td width="60%" class="STYLE1"><span class="STYLE3">你当前的位置</span>：[业务中心]-[修改子类别]</td>
                <td width="18%" class="STYLE1">&nbsp;</td>
              </tr>
            </table></td>
            <td width="42%">
              <table border="0"  align="right" cellpadding="0" cellspacing="0">
              <tr>
              <td width="60"></td>
                <td width="60">&nbsp;</td>
                <td width="60">&nbsp;</td>
                <td width="60">&nbsp;</td>
                <td width="52">&nbsp;</td>
              </tr>
            </table></td>
          </tr>
        </table></td>
        
        <td width="16"><img src="admin/tab/images/tab_07.gif" width="16" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="10" background="admin/tab/images/tab_12.gif">&nbsp;</td>
        <td width="1101" >
        <form action="<%=request.getContextPath() %>/editSubtype.do" method="post">
        <table width="28%" height="93" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="b5d6e6" onmouseover="changeto()"  onmouseout="changeback()">
          <tr>
            <td height="22" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF"><div align="center"
            ><span class="STYLE1">父类别</span>
              </div></td>
            <td height="22" colspan="2" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF">
            <div align="center">
             <select name="typeID" id="typeID">
                <c:forEach items="${sessionScope.typeList}" var="temp">
                    <option value="${temp.typeID}" 
                            <c:if test="${temp.typeID == sessionScope.subtype.typeID}">selected</c:if>>
                         ${temp.typeName}
                      </option>
                 </c:forEach>
               </select>
             </div>
            </td>
            </tr>
          <tr>
            <td width="23%" height="22" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF">
            <div align="center"
            ><span class="STYLE1">子类别</span>
              <span class="STYLE1">ID</span></div>
            </td>
            <td height="22" colspan="2" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">
              <label>
                <input type="text" name="subtypeID" id="subtypeID" value="${sessionScope.subtype.subtypeID}"/>
              </label>
            </span></div></td>
            </tr>
            <tr>
            <td width="23%" height="22" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF">
            <div align="center"
            ><span class="STYLE1">子类别名称</span>
            </div>
            </td>
            <td height="22" colspan="2" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">
              <label>
                <input type="text" name="subtypeName" id="subtypeName" value="${sessionScope.subtype.subtypeName}"/>
              </label>
            </span></div></td>
            </tr>
            <tr>
              <td width="23%" height="22" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF">
                <div align="center"
            ></div>
                </td>
              <td width="39%" height="22" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF"><div align="center"><span class="STYLE1">
                <label>
                  <input name="submitSubtype" type="submit" id="submitSubtype" value="提交" />
                  </label>
                </span></div></td>
              <td width="38%" background="admin/tab/images/bg.gif" bgcolor="#FFFFFF" align="center"><label>
                <input type="reset" name="reset" id="reset" value="重置" />
                </label></td>
            </tr>
        </table>
        </form>
        </td>
        <td width="8" background="admin/tab/images/tab_15.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="35" background="admin/tab/images/tab_19.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
       
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
